<script src="js/CertusFileUpload.js"></script>
<!-- 主页-用章申请-添加 -->
<section id="container">
    <!--main content start-->
    <section id="main-content">
        <section class="wrapper">
            <!--state overview end-->
            <div class="row">
                <div class="col-lg-12">
                    <section class="panel">
                        <header class="panel-heading">
                            基本信息(所有用章务必上传相关附件，附件内容经过上级领导查阅同意后方可盖章！)
                        </header>
                        <div class="panel-body">
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">申请用途</label>
                                <div class="col-sm-10">
                                    <textarea class="form-control" certus-required ng-model="signet.application"
                                        certus-an-limit-length="120" placeholder="字数限制(120字以内)"></textarea>
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">区域</label>
                                <div class="col-sm-10">
                                    <select class="form-control" certus-required ng-model="signet.locationCode"
                                        ng-change="locationChange()">
                                        <option value="{{ss.code}}" ng-repeat="ss in affiliationSelect">
                                            {{ss.name}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">印章选择</label>
                                <div class="col-sm-10">
                                    <select class="form-control" certus-required ng-model="signet.signetCode">
                                        <option value="{{ss.signetCode}}" ng-repeat="ss in signetCodeSelect">
                                            {{ss.signetName}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">使用方式</label>
                                <div class="col-sm-10">
                                    <select class="form-control" ng-model="signet.usageMode" certus-required>
                                        <option value="{{xx.code}}" ng-repeat="xx in usageModeSelect">
                                            {{xx.name}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">文件名</label>
                                <div class="col-sm-10">
                                    <input type="text" ng-model="signet.fileName"  maxlength="100" 
                                        certus-required class="form-control" />
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">文件上传</label>
                                <div class="col-sm-10">
                                    <input type="file" id="fileUploadId" certus-required class="form-control input-file">
                                </div>
                            </div>
                        </div>
                    </section>

                    <section class="panel shuplod" id="shuplod" style="display:none;">
                        <header class="panel-heading">
                            附件上传
                        </header>
                        <div class="panel-body">
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">文件分类*</label>
                                <div class="col-sm-10">
                                    <select class="form-control" disabled>
                                        <option>公司外部来源</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">文件类型*</label>
                                <div class="col-sm-10">
                                    <select class="form-control" disabled>
                                        <option>用章附件</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">文件说明</label>
                                <div class="col-sm-10">
                                    <textarea maxlength="120"  class="form-control"></textarea>
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">文件有效期</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control">
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">文件密级别*</label>
                                <div class="col-sm-10">
                                    <select class="form-control filetype">
                                        <option value="1">内部保密</option>
                                        <option value="2">外部保密</option>
                                        <option value="3">完全公开</option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group customerForm">
                                <label class="col-sm-2 control-label">文件管理员*</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" placeholder="需要正确的工号">
                                </div>
                            </div>
                            <div class="form-group customerForm fileun">
                                <label class="col-sm-2 control-label">下载审批人*</label>
                                <div class="col-sm-10">
                                    <input type="text" class="form-control" placeholder="需要正确的工号">
                                </div>
                            </div>

                            <p class="col-sm-12 file-msg">
                                注意事项：<br>
                                1、当选择“外部保密”时候，如果使用者需要下载，则需要得到需要下载的人员的部门领导审批后才能下载；<br>
                                2、当选择“内部保密”时候，如果使用者需要下载，则需要得到需要下载的人员的部门领导审批后，然后得到文件制定的审批人审批通过后才能下载；<br>
                                3、文件类型目前只支持选择doc、docx、txt、pdf、jpg、rar等类型；<br>
                                4、文件上传大小只支持不超过2M的文件；<br>
                                5、禁止上传研发内部设计文档（对外的技术支持、产品概述等外部使用文档可以上传），研发内部文档由SVN管理。<br>
                            </p>
                            <p class="default-buttons">
                                <a href="javascript:void(0);" class="button-back btn btn-info" onclick="shuplod()">取消</a>
                                <a href="javascript:void(0);" class="button-next  btn btn-info">提交</a>
                            </p>
                        </div>
                    </section>

                    <section class="panel">
                        <div class="panel-body">
                            <p class="default-buttons">
                                <a href="javascript:void(0);" class="button-back btn btn-info" onclick="window.history.back()">返回</a>
                                <a href="javascript:void(0);" class="button-next  btn btn-success" ng-click="signetSubmit()">确认提交</a>
                            </p>
                        </div>
                    </section>

                </div>
            </div>
        </section>
    </section>
    <!--main content end-->
</section>

<script type="text/javascript" src="js/stamp/stamp.js"></script>